package com.ek.common;

import java.io.IOException;
import java.net.SocketAddress;

import com.ek.kademlia.protocol.Message;
import com.ek.kademlia.protocol.Response;

public interface MessageSender {

    public <T extends Response> FutureResponse<T> sendMessage(Message message, SocketAddress socketAddress);

    void sendResponse(Message message, SocketAddress socketAddress);

    public void sendMulticastMessage() throws IOException;

}
